package payment;

import java.net.InetSocketAddress;

import com.sun.net.httpserver.HttpServer;

import payment.api.Manage;
import payment.api.Pay;
import payment.api.PayResult;
import payment.api.QRCode;

public class App {
    public static void main(String[] args) throws Exception {
        HttpServer server = HttpServer.create(new InetSocketAddress(8080), 0);
        server.createContext("/manage", new Manage());
        server.createContext("/payResult", new PayResult());
        server.createContext("/pay", new Pay());
        server.createContext("/qrcode", new QRCode());
        server.start();
    }
}